package com.example.u7.code7_4_1;

class Line extends Shape{
    private int start; private int end;
    public Line(int start,int end) {
        super(start);
        this.start = start;
        this.end = end;
        System.out.println("Drawing Line " + this.start + "," + this.end);
    }

    void dispose() {
        System.out.println("Erasing Line "+ this.start + "," + this.end);
        super.dispose();
    }
}
